Optimal. Leaf size=178 \[ -\frac {a^{5/2} \left (3 c^2-10 c d+19 d^2\right ) \tan ^{-1}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{4 d^{5/2} f}+\frac {3 a^3 (c-3 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 d f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.29, antiderivative size = 178, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.138, Rules used = {2842, 3060,
2854, 211} \begin {gather*} -\frac {a^{5/2} \left (3 c^2-10 c d+19 d^2\right ) \text {ArcTan}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}\right )}{4 d^{5/2} f}+\frac {3 a^3 (c-3 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 d^2 f \sqrt {a \sin (e+f x)+a}}-\frac {a^2 \cos (e+f x) \sqrt {a \sin (e+f x)+a} \sqrt {c+d \sin (e+f x)}}{2 d f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 2842
Rule 2854
Rule 3060
Rubi steps
\begin {align*} \int \frac {(a+a \sin (e+f x))^{5/2}}{\sqrt {c+d \sin (e+f x)}} \, dx &=-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 d f}+\frac {\int \frac {\sqrt {a+a \sin (e+f x)} \left (\frac {1}{2} a^2 (c+5 d)-\frac {3}{2} a^2 (c-3 d) \sin (e+f x)\right )}{\sqrt {c+d \sin (e+f x)}} \, dx}{2 d}\\ &=\frac {3 a^3 (c-3 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 d f}+\frac {\left (a^2 \left (3 c^2-10 c d+19 d^2\right )\right ) \int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {c+d \sin (e+f x)}} \, dx}{8 d^2}\\ &=\frac {3 a^3 (c-3 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 d f}-\frac {\left (a^3 \left (3 c^2-10 c d+19 d^2\right )\right ) \text {Subst}\left (\int \frac {1}{a+d x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{4 d^2 f}\\ &=-\frac {a^{5/2} \left (3 c^2-10 c d+19 d^2\right ) \tan ^{-1}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}\right )}{4 d^{5/2} f}+\frac {3 a^3 (c-3 d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{4 d^2 f \sqrt {a+a \sin (e+f x)}}-\frac {a^2 \cos (e+f x) \sqrt {a+a \sin (e+f x)} \sqrt {c+d \sin (e+f x)}}{2 d f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.53, size = 256, normalized size = 1.44 \begin {gather*} \frac {(a (1+\sin (e+f x)))^{5/2} \left (\frac {\left (3 c^2-10 c d+19 d^2\right ) \left (2 \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {d} \sin \left (\frac {1}{4} (2 e-\pi +2 f x)\right )}{\sqrt {c+d \sin (e+f x)}}\right )+\tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {d} \cos \left (\frac {1}{4} (2 e-\pi +2 f x)\right )}{\sqrt {c+d \sin (e+f x)}}\right )-\log \left (\sqrt {2} \sqrt {d} \cos \left (\frac {1}{4} (2 e-\pi +2 f x)\right )+\sqrt {c+d \sin (e+f x)}\right )\right )}{d^{5/2}}+\frac {2 \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) (3 c-11 d-2 d \sin (e+f x)) \sqrt {c+d \sin (e+f x)}}{d^2}\right )}{8 f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 180.00, size = 0, normalized size = 0.00 \[\int \frac {\left (a +a \sin \left (f x +e \right )\right )^{\frac {5}{2}}}{\sqrt {c +d \sin \left (f x +e \right )}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 398 vs.
\(2 (161) = 322\).
time = 0.70, size = 1269, normalized size = 7.13 \begin {gather*} \left [\frac {{\left (3 \, a^{2} c^{2} - 10 \, a^{2} c d + 19 \, a^{2} d^{2} + {\left (3 \, a^{2} c^{2} - 10 \, a^{2} c d + 19 \, a^{2} d^{2}\right )} \cos \left (f x + e\right ) + {\left (3 \, a^{2} c^{2} - 10 \, a^{2} c d + 19 \, a^{2} d^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {-\frac {a}{d}} \log \left (\frac {128 \, a d^{4} \cos \left (f x + e\right )^{5} + a c^{4} + 4 \, a c^{3} d + 6 \, a c^{2} d^{2} + 4 \, a c d^{3} + a d^{4} + 128 \, {\left (2 \, a c d^{3} - a d^{4}\right )} \cos \left (f x + e\right )^{4} - 32 \, {\left (5 \, a c^{2} d^{2} - 14 \, a c d^{3} + 13 \, a d^{4}\right )} \cos \left (f x + e\right )^{3} - 32 \, {\left (a c^{3} d - 2 \, a c^{2} d^{2} + 9 \, a c d^{3} - 4 \, a d^{4}\right )} \cos \left (f x + e\right )^{2} - 8 \, {\left (16 \, d^{4} \cos \left (f x + e\right )^{4} - c^{3} d + 17 \, c^{2} d^{2} - 59 \, c d^{3} + 51 \, d^{4} + 24 \, {\left (c d^{3} - d^{4}\right )} \cos \left (f x + e\right )^{3} - 2 \, {\left (5 \, c^{2} d^{2} - 26 \, c d^{3} + 33 \, d^{4}\right )} \cos \left (f x + e\right )^{2} - {\left (c^{3} d - 7 \, c^{2} d^{2} + 31 \, c d^{3} - 25 \, d^{4}\right )} \cos \left (f x + e\right ) + {\left (16 \, d^{4} \cos \left (f x + e\right )^{3} + c^{3} d - 17 \, c^{2} d^{2} + 59 \, c d^{3} - 51 \, d^{4} - 8 \, {\left (3 \, c d^{3} - 5 \, d^{4}\right )} \cos \left (f x + e\right )^{2} - 2 \, {\left (5 \, c^{2} d^{2} - 14 \, c d^{3} + 13 \, d^{4}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c} \sqrt {-\frac {a}{d}} + {\left (a c^{4} - 28 \, a c^{3} d + 230 \, a c^{2} d^{2} - 476 \, a c d^{3} + 289 \, a d^{4}\right )} \cos \left (f x + e\right ) + {\left (128 \, a d^{4} \cos \left (f x + e\right )^{4} + a c^{4} + 4 \, a c^{3} d + 6 \, a c^{2} d^{2} + 4 \, a c d^{3} + a d^{4} - 256 \, {\left (a c d^{3} - a d^{4}\right )} \cos \left (f x + e\right )^{3} - 32 \, {\left (5 \, a c^{2} d^{2} - 6 \, a c d^{3} + 5 \, a d^{4}\right )} \cos \left (f x + e\right )^{2} + 32 \, {\left (a c^{3} d - 7 \, a c^{2} d^{2} + 15 \, a c d^{3} - 9 \, a d^{4}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1}\right ) - 8 \, {\left (2 \, a^{2} d \cos \left (f x + e\right )^{2} - 3 \, a^{2} c + 9 \, a^{2} d - {\left (3 \, a^{2} c - 11 \, a^{2} d\right )} \cos \left (f x + e\right ) + {\left (2 \, a^{2} d \cos \left (f x + e\right ) + 3 \, a^{2} c - 9 \, a^{2} d\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}}{32 \, {\left (d^{2} f \cos \left (f x + e\right ) + d^{2} f \sin \left (f x + e\right ) + d^{2} f\right )}}, \frac {{\left (3 \, a^{2} c^{2} - 10 \, a^{2} c d + 19 \, a^{2} d^{2} + {\left (3 \, a^{2} c^{2} - 10 \, a^{2} c d + 19 \, a^{2} d^{2}\right )} \cos \left (f x + e\right ) + {\left (3 \, a^{2} c^{2} - 10 \, a^{2} c d + 19 \, a^{2} d^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {\frac {a}{d}} \arctan \left (\frac {{\left (8 \, d^{2} \cos \left (f x + e\right )^{2} - c^{2} + 6 \, c d - 9 \, d^{2} - 8 \, {\left (c d - d^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c} \sqrt {\frac {a}{d}}}{4 \, {\left (2 \, a d^{2} \cos \left (f x + e\right )^{3} - {\left (3 \, a c d - a d^{2}\right )} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - {\left (a c^{2} - a c d + 2 \, a d^{2}\right )} \cos \left (f x + e\right )\right )}}\right ) - 4 \, {\left (2 \, a^{2} d \cos \left (f x + e\right )^{2} - 3 \, a^{2} c + 9 \, a^{2} d - {\left (3 \, a^{2} c - 11 \, a^{2} d\right )} \cos \left (f x + e\right ) + {\left (2 \, a^{2} d \cos \left (f x + e\right ) + 3 \, a^{2} c - 9 \, a^{2} d\right )} \sin \left (f x + e\right )\right )} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {d \sin \left (f x + e\right ) + c}}{16 \, {\left (d^{2} f \cos \left (f x + e\right ) + d^{2} f \sin \left (f x + e\right ) + d^{2} f\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{5/2}}{\sqrt {c+d\,\sin \left (e+f\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________